package com.loukou.lkt.company.service;

import java.util.List;

import com.loukou.lkt.lkt.entity.Privilege;
import com.loukou.lkt.lkt.entity.Role;
import com.loukou.lkt.lkt.req.SearchUserReq;
import com.loukou.lkt.lkt.resp.AuthInfo;
import com.loukou.lkt.lkt.resp.DataGrid;
import com.loukou.lkt.lkt.resp.RespDto;
import com.loukou.lkt.lkt.resp.UserResp;

public interface UserService {
	
	public AuthInfo getAuthInfo(String username, String password);

	public List<Role> getAllRole();

	public List<Privilege> getAllPrivileges();

	public DataGrid queryUserPage(SearchUserReq userReq);

	public void deleteUser(int id);

	public UserResp getUserResp(int id);

	public void deleteUserRole(int userId, int roleId);

	public RespDto<Role> addUserRole(int userId, int roleId);

	public RespDto<String> addUser(String realname, String username, int[] roleIds);

	public RespDto<String> editUser(int userId, String realname, String username, int[] roleIds);

}
